import 'react-native-gesture-handler';
import React, {Fragment} from 'react';
import {
  SafeAreaView,
  StyleSheet,
  ScrollView,
  View,
  Text,
  StatusBar,Image,AsyncStorage, Dimensions
} from 'react-native';
import SplashScreen from 'react-native-splash-screen'
export default class Go extends React.Component{
    componentDidMount(){
        
        
    }
    
    constructor(){
        super()
        setImmediate(()=>{
            AsyncStorage.getItem('token').then((data)=>{
                console.log(data)
                if(data == null ){
                  this.props.navigation.navigate('Home')
                }else{
                  this.props.navigation.navigate('App')
                }
              })
              
        },2000)
    }
    render(){
       
      
        return(
            <Image style={{width:Dimensions.get('window').width,height:Dimensions.get('window').height}} source={require('../image/launch_screen1.jpg')}></Image>
        )
    }
}